/*
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *如果数据库字段发生变化，请在代码生器重新生成此Model
 */
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using iMES.Entity.SystemModels;

namespace iMES.Entity.DomainModels
{
    [Entity(TableCnName = "原料质检",TableName = "Quality_TestMaterial",DetailTable =  new Type[] { typeof(Quality_TestDetail)},DetailTableCnName = "质检明细表",DBServer = "SysDbContext")]
    public partial class Quality_TestMaterial:SysEntity
    {
        /// <summary>
       ///原料质检主键Id
       /// </summary>
       [Key]
       [Display(Name ="原料质检主键Id")]
       [Column(TypeName="uniqueidentifier")]
       [Required(AllowEmptyStrings=false)]
       public Guid QualityTestMaterialId { get; set; }

       /// <summary>
       ///修改人Id
       /// </summary>
       [Display(Name ="修改人Id")]
       [Column(TypeName="int")]
       public int? ModifyID { get; set; }

       /// <summary>
       ///创建时间
       /// </summary>
       [Display(Name ="创建时间")]
       [Column(TypeName="datetime")]
       public DateTime? CreateDate { get; set; }

       /// <summary>
       ///创建人
       /// </summary>
       [Display(Name ="创建人")]
       [MaxLength(30)]
       [Column(TypeName="nvarchar(30)")]
       public string Creator { get; set; }

       /// <summary>
       ///创建人Id
       /// </summary>
       [Display(Name ="创建人Id")]
       [Column(TypeName="int")]
       public int? CreateID { get; set; }

       /// <summary>
       ///原料批次号
       /// </summary>
       [Display(Name ="原料批次号")]
       [MaxLength(100)]
       [Column(TypeName="nvarchar(100)")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public string Rawmateriabatch { get; set; }

       /// <summary>
       ///型号
       /// </summary>
       [Display(Name ="型号")]
       [MaxLength(200)]
       [Column(TypeName="nvarchar(200)")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public string XinghaoName { get; set; }

       /// <summary>
       ///尺寸
       /// </summary>
       [Display(Name ="尺寸")]
       [MaxLength(200)]
       [Column(TypeName="nvarchar(200)")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public string SizeName { get; set; }

       /// <summary>
       ///原料名称
       /// </summary>
       [Display(Name ="原料名称")]
       [MaxLength(200)]
       [Column(TypeName="nvarchar(200)")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public string RawmanagementName { get; set; }

       /// <summary>
       ///原料编号
       /// </summary>
       [Display(Name ="原料编号")]
       [MaxLength(200)]
       [Column(TypeName="nvarchar(200)")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public string RawmanagementBh { get; set; }

       /// <summary>
       ///供应商
       /// </summary>
       [Display(Name ="供应商")]
       [MaxLength(200)]
       [Column(TypeName="nvarchar(200)")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public string QualityTestMaterialSupplier { get; set; }

       /// <summary>
       ///质检人
       /// </summary>
       [Display(Name ="质检人")]
       [MaxLength(100)]
       [Column(TypeName="nvarchar(100)")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public string QualityTestMaterialMen { get; set; }

       /// <summary>
       ///质检日期
       /// </summary>
       [Display(Name ="质检日期")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       public DateTime? QualityTestMaterialData { get; set; }

       /// <summary>
       ///质检名称
       /// </summary>
       [Display(Name ="质检名称")]
       [MaxLength(100)]
       [Column(TypeName="nvarchar(100)")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public string QualityTestMaterialName { get; set; }

       /// <summary>
       ///质检编号
       /// </summary>
       [Display(Name ="质检编号")]
       [MaxLength(100)]
       [Column(TypeName="nvarchar(100)")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public string QualityTestMaterialCode { get; set; }

       /// <summary>
       ///修改人
       /// </summary>
       [Display(Name ="修改人")]
       [MaxLength(30)]
       [Column(TypeName="nvarchar(30)")]
       public string Modifier { get; set; }

       /// <summary>
       ///修改日期
       /// </summary>
       [Display(Name ="修改日期")]
       [Column(TypeName="datetime")]
       public DateTime? ModifyDate { get; set; }

       /// <summary>
       ///单位
       /// </summary>
       [Display(Name ="单位")]
       [MaxLength(200)]
       [Column(TypeName="nvarchar(200)")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public string DanWeiName { get; set; }

       [Display(Name ="质检明细表")]
       [ForeignKey("QualityTestMaterialId")]
       public List<Quality_TestDetail> Quality_TestDetail { get; set; }

    }
}